An approach to deal with packaging in power electronics