Magmatic diversity of western Mexico as a function of metamorphic transformations in the subducted oceanic plate