A model for line absorption and emission from turbulent mixing layers