A General Approach to Sampled-Data Modeling for Ripple-Based Control—Part I: Peak/Valley Current Mode and Peak/Valley Voltage Mode A General Approach to Sampled-Data Modeling for Ripple-Based Control—Part II: Constant ON-Time and Constant OFF-Time Control