Interface states of rectangular photonic crystals with dislocated and non-dislocated photonic bandgaps