Two-dimensional algebraic-geometric operators with self-consistent potentials