Antibacterial mechanism analysis and structural design of amino acid-based carbon dots