Real-Analytic Perturbation Theory : Arnold Diffusion In Billiards And Homoclinic Geodesics On Hypersurfaces