A voltage controlled power resistor circuit for active gate driving of wide-bandgap power devices