Mathematical cosmology: An introduction