Electromagnetic waves in a cylindrical waveguide with infinite or semi-infinite wall corrugations