Optical Stark Effect and Coherent Gain of Excitons in a Semiconductor Microcavity