The electron states of one-dimensional thin metal films