Conditions for the coexistence of liquid-like and solid-like behaviors in viscoelastic liquids