Fast computation of quasi-static magnetic fields around nonperfectly conductive shields