Nuclear quadrupole resonance of 69Ga and 115In in chalcogenides MX and M2X3