Optical bistability: towards all-optical devices