De novo design of a pH-triggered self-assembled β-hairpin nanopeptide with the dual biological functions for antibacterial and entrapment