An eigenmode solver for open electromagnetic resonantors