Adaptive-order rational Arnoldi-type methods in computational electromagnetism