A discretization model for the solution of Maxwell's equations for six-component fields