THz-TDS for monitoring the curing of dental composites