Josephson effect for photons in two eakly linked microcavities