Investigation of MOSFET failure in soft-switching conditions