Reliability modeling and configuration optimization of a photovoltaic based electric power generation system