Installing solar panels to generate electricity will pay off in five years