The regularity of geodesics in impulsive pp-waves