Gold ends above key $1,230 level as investors weigh interest-rate outlook