Energy conversion via metal nanolayers