SPICE aided analysis of UPS vector control