Equilibrium charge state distributions of 14N and 20Ne ions emerging from solids