Newton's constant in f(R,R_{μν}R^{μν},\Box R) theories of gravity and constraints from BBN