Dynamic behaviour of optical bistability