A machine learning approach to quantify dissolution kinetics of porous media