Glassy state clarified through chemical bonds and their defects