A New Formulation of the Dispersion Equation in Multilayered Structures