Spectroscopic analysis of chemically peculiar stars: abundance determination of lithium and some rare earth elements