A vectorial MPPT algorithm for distributed photovoltaic applications