Nonlinear Liouville theorems for Grushin and Tricomi operators