Regular spatial structures in arrays of Bose-Einstein condensates induced by modulational instability