Elastic lateral torsional buckling of unbraced and braced planar frames