W-constraints in 2D quantum gravity