Current sensing MOSFETs for protection and control