Distribution of local elastic constants in nanofilms of metals