Self-field effects in Josephson junction arrays