Study of electrical properties of thin metal films and composite films near the percolation threshold I