Touted as a promising alternative energy source for decades, solar panels crown rooftops and roadside signs, and help keep spacecraft powered. But how do solar panels work?