Asymptotically conserved quantities for nonlinear ODEs and connection formulae