Cosmological Applications of Gravitational Lensing