On trees with smallest resolvent energies