A simulation model for predicting the performance of a solar photovoltaic system with alternating current loads