On the nonlocal symmetries of certain nonlinear oscillators and their general solution