Two-photon Rabi splitting and optical Stark effect in microcavities