Efficient solution of the differential form of Maxwell's equations in rectangular regions