Generalized two-dimensional Yang-Mills theory is a matrix string theory