Thermo-optic modulator with a doped silicon heater