Dipole magnetic field of neutron stars in $$f(R)$$f(R) gravity