Find all pairs \((m, n)\) of positive integers such that \(\frac{m^2}{2mn^2-n^3+1}\) is a positive integer.