Heavy-Ion Reactions in Nuclear Astrophysics