Generalized directional gradients, backward stochastic differential equations and mild solutions of semilinear parabolic equations