Technology Agnostic Analysis and Design for Improved Performance, Variability, and Reliability in Thin Film Photovoltaics