Safina to meet Dementieva in final