Densified network glasses and liquids with thermodynamically reversible and structurally adaptive behaviour