The extended Hubbard model in the ionic limit