Ionic structure effects on the optical response of lithium clusters