Influence of induced magnetic fields on the static properties of Josephson-junction arrays.