Ukraine raises $1bn and buys time