Localization of Electrons and Inelastic Relaxation Time in Metal Films