Magnetoacoustic determination of pinning energies in high-Tc superconductors