FEniCS programs for solving Maxwell's equations in some special cases