Microbial production of medium-chain length polyhydroxyalkanoates