Atomic collisions and local thermodynamic equilibrium in stellar atmospheres