Commuting transfer matrix solution of the asymmetric six-vertex model