Invertor for BLDC motors