Numerical analysis of a quasi-gasdynamic algorithm as applied to the Euler equations