Dynamic on-state resistance evaluation of GaN devices under hard and soft switching conditions