Recognizability of groups G2(q) by spectrum