The determination of nonlocal symmetries by the technique of reduction of order