Principles of Gravitational Lensing : Light Deflection as a Probe of Astrophysics and Cosmology