Sampled-data Modeling of PWM Boost Converters in Continuous and Discontinuous Inductor Current Modes