A Comprehensive Simulation Model For Floating Gate Transistors