Semilinear subelliptic problems with critical growth on Carnot groups