Electron density distribution around hydrogen atoms in linear molecules