Finite temperature spectral function of Mott insulators and charge density wave states.