Characterization of tokamak edge plasmas using spectroscopic line profiles