Theory of polariton photoluminescence in arbitrary semiconductor microcavity structures.