Physics-Based Signal Processing Methods for Terahertz Non-Destructive Evaluation of Layered Media