A pressure vessel for studying gas foaming of thermosetting polymers: sorption, synthesis and processing