Two-Step Curing Reaction of Epoxy Resin Studied by Thermal Analysis and Infrared Spectroscopy