Optimization of growth conditions for the biosynthesis of medium-chain length polyhydroxyalkanoates from Bacillus megaterium DSM 509: experimental analysis, statistical modelling, and characterization