How a nuclear reactor makes electricity