Modified biobased materials from polyhydroxyalkanoates for packaging and engineering applications