Self-field effects in two-dimensional Nb Josephson-junction arrays