Efficient finite-element analysis of magnetooptic waveguides