Thermoelastic response of thin metal films and their adjacent materials