Effect of Structure of Imide Containing Various Functional Groups on the Thermal Behaviour of Epoxy Resin