Analysis and control of mismatch power loss in photovoltaic arrays