Volatile-rich magma─atmosphere equilibria on hot rocky exoplanets