Theory of polariton parametric interactions in semiconductor microcavities