Elastic Stability of uniform and non-uniform members with arbitrary boundary conditions and intermediate lateral restraints