Multilayer film thickness measurement using ultrafast terahertz pulsed imaging