Light- and pH-responsive self-healing hydrogel