Direct and inverse uncertainty quantification of acoustic refraction phenomena through a shear layer