Classification of integrable equations on quad-graphs. The consistency approach