Exponential function method for solving nonlinear ordinary differential equations with constant coefficients on a semi-infinite domain