Elliptic integrals solution to elastica's boundary value problem of a rod bent by axial compression