Design and implementation of an automated testbed for evaluating switching behavior of power semiconductors