Investigations on the lattice imperfections and their influence on the electrical resistivities of metals and alloys