Stress-induced g-shift of diluted Er in Au thin films