Bioinspired multifunctional self-powered ionic receptors derived by gradient polyelectrolyte hydrogels