Modeling and realization of photovoltaic simulator based on a buck DC-DC converter