Thin‐layer method: Formulation in the time domain