Fluxoid Pinning in Nonideal Type-II Superconductors. I. Force between a Fluxoid and a Lattice Defect