New Modeling Approach for High Frequency Devices: Application to Ultrafast Optically Controlled Switches