System identification of linear and switching regulators using switched capacitor correlator