The worst could be over for the solar industry