General Theoretical Model for Resonantly Enhanced Optical Modulators