Energy and fine structure of 1s2nd and 1s2n f states for the lithium isoelectronic sequence