Atomic absorption and emission in laser produced plasmas