A technique for mismatched PV array simulation