Synthesis of antimicrobial peptide-mimicking hydrogels