The shear-induced solid–liquid transition in yield stress materials with chemically different structures