Calculation of the volume pinning force in MgB 2 superconductors