The shock and release behaviors of diamond at Terapascal pressures