A General Approach to Sampled-Data Modeling for Power Electronic Circuits