how to implement a floating gate mosfet