Hyperfine fields at surfaces and interfaces