Locking and unlocking of polyelectrolyte brushes: toward the fabrication of chemically controlled nanoactuators