Structural effects on the magnetic properties of elementary cubic networks of Josephson junctions