RIS-aided CF-mMIMO system for terrestrial and aerial communication : performance analysis and optimization