Astrophysics of Planet Formation