Application of the iterative approach to modal methods for the solution of Maxwell's equations