Structural basis of the inhibition of class A beta-lactamases and penicillin-binding proteins by 6-beta-iodopenicillanate.