Radiative transfer and transverse inhomogeneity effects in spectral lines emitted from laser plasmas