Holographic lattices and metal–insulator transition