Nondestructive examination of polymethacrylimide composite structures with terahertz time-domain spectroscopy