Control in power electronics and electrical drives