g shifts of Gd in dilute alloys