Tune-out and magic wavelengths of Ba+ ions