Analysis and optimization of Schwarz algorithms for ocean - sea ice - atmosphere coupling