Two dimensional analytical model for a reconfigurable field effect transistor