Backward Stochastic Differential Equations and BMO martingales