Mesoscopic Structural States at the Nanoscale in Surface Layers of Titanium and Its Alloy Ti-6Al-4V in Ultrasonic and Electron Beam Treatment