Effect of magnetic field decay on the chemical heating of cooling neutron stars