Crystal structure and mechanism of a bacterial fluorinating enzyme