Structural investigation of epoxy amine networks by mid- and near-infrared spectroscopy