Electromagnetic wave propagation in inhomogeneous multilayered structures of arbitrarily varying thickness‐Generalized field transforms