Computationally efficient finite-difference modal method for the solution of Maxwell's equations