An Introduction to General Relativity and Cosmology