General Relativity: With Applications to Astrophysics