Competition between modulational instability and switching in optical bistability.