MAINT: use implementation from scipy.stats in scipy.stats.mstats for gmean and hmean

Closes gh-3196.
Merge branch 'pr/3302' into master.

Review at https://github.com/scipy/scipy/pull/3302