Factors affecting poly-beta-hydroxybutyrate accumulation in cyanobacteria and in purple non-sulfur bacteria