Electronic energy transfer in a planar microcavity