Free products with amalgamation and HNN-extensions of uniformly exponential growth