Spin dynamics of interacting exciton-polaritons in microcavities.