Diffractionless beams and their use for harmonic generation