Inverse dispersion method for calculation of complex photonic band diagram andPTsymmetry