Rate of erosion of dayside magnetic flux based on a quantitative study of the dependence of polar cusp latitude on the interplanetary magnetic field