Backward stochastic differential equations and some applications in PDES