Surface and interface stress effects in thin films