Structural mechanism of regioselectivity in an unusual bacterial acyl-CoA dehydrogenase