Nonlocal effects on the magnetic penetration depth in d-wave superconductors