Solutions of semilinear elliptic equations in tubes