Recent fighting has thrust two states of Sudan, South Kordofan and Blue Nile, onto the brink of catastrophe, a UN spokesman has said.