Optical bistability in thin molecular films