High-endurance megahertz electrical self-oscillation in Ti/NbOx bilayer structures