Ecuadorian court upholds former president’s conviction