Curing mechanism and thermal properties of epoxy-imidazole systems