Computer simulation of elastic and structural properties of thin films. I. (001) orientation in fcc metals