Understanding pwm value to get desired voltage from MOSFET?