Magnetic Fields in Astrophysics