US ambassador to Panama resigns, saying he can no longer work under Trump