Synthesis of functional polylactides for biomedical and pharmaceutical applications