A cheap and efficient photovoltaic emulator