Model validation and coordinated operation of a photovoltaic array and a diesel plant for distributed generation