The critical points of the multimatrix model as theories of 2D W-gravity