A study of the d.c. susceptibility of granular superconductors by means of Josephson-junction array models