On the stationary distribution of photons in optical bistability