Ion Accelerator Applications, Compact RF Linear Architectures and Machine Learning for Real-Time Tuning and Optimization