XXIV Canary Islands Winter School of Astrophysics: Astrophysical Applications of Gravitational Lensing