a nuclear reactor produces heat