How does a nuclear reactor work and how is the process different than what goes on inside a star?