Thermochemistry of rare-earth aluminate and aluminosilicate glasses