Terahertz time-domain spectroscopy for monitoring the curing of dental composites