The solar industry is facing a looming shortage of photovoltaic panels, reversing a two-year slump triggered by a global glut.