Advanced Stress Estimation in Rock Formations Using Ultrasound and Machine Learning