A Novel Method of Optimization at a Constant Desposition Rate: Application to Thin-Film Amorphous Silicon Solar Cells