Homeowners who install solar on their roofs lower electricity costs for those around them, new study finds.