Hysteresis and nonlinear thermooptic waves in a semiconductor Fabry-Perot interferometer