An inverse modeling approach to obtain P-T conditions of metamorphic stages involving garnet growth and resorption