Structural and molecular rationale for the diversification of resistance mediated by the Antibiotic_NAT family