NRG Energy Inc. (NRG), the largest independent U.S. electricity producer, bought rooftop solar installer Roof Diagnostics Solar Inc. as it seeks to capitalize on the growing decentralized power market.