Estimates of the Green function for X-elliptic operators