Theory of optical bistability in metal mirrored fabry-perot cavities containing thermo-optic materials