Accelerating nondiffracting beams