Synthesis of fluorinated compounds for biomedical applications