Computational mechanics and optimization-based prediction of grain orientation in anisotropic media using ultrasonic response