An analytical solution of temperature response in multilayered materials for transient methods