Time-domain wave splitting of Maxwell's equations