Computing the eigenmodes of lossy field-induced optical waveguides