Solution of two-dimensional problems of diffraction at piecewise-smooth cylindrical surfaces