How do they produce the sinusoid to commutate a brushless motor? I understand the square wave stuff...it's pretty simple flick a transistor on and off. But how do they make the sinusoid? I'm sure they don't turn the MOSFET part way on or use resistances or something...too much energy wasted.