Reshaping the solar spectrum to turn light to electricity