Thermodynamic predictions of the formation of chalcogenide glasses