Analytical description of anomalous switching in dispersive optical bistability