Efficient electrochemomechanical energy conversion in nanochannels grafted with polyelectrolyte layers with pH-dependent charge density