On the BRST structure of W_3 gravity coupled to c=2 matter