Effect of nonlinear electrodynamics on the weak field deflection angle by a black hole