An isolated gate drive for Power MOSFETs and IGBTs