PP-Waves from Nonlocal Theories