The Mordell--Weil bases for the elliptic curve of the form $y^2=x^3-m^2x+n^2$