Investigation of the self-absorption effect using spatially resolved laser-induced breakdown spectroscopy