Turning points and first integrals in diffraction problems