Hyperfine structure and nuclear moments of 161Er and 163Er