Polariton dynamics and Bose-Einstein condensation in semiconductor microcavities