Rising electricity costs and growing interest in sustainable energy are making solar panels more attractive to homeowners.