EU pledges to loan Ukraine up to $39 billion to help rebuild economy and power grid