Nuclear physics and supernovae