Mechanistic and functional studies of free and anchored antimicrobial peptides for biomaterial applications