Text this: Analysis of the dynamics of environmental degradation for 18 upper middle-income countries