Bacterial synthesis of poly-β-hydroxyalkanoates with functionalized side chains