Modeling of Electron Density in Linear Configurations of (H3)2+ and (H4)3+ stabilized by an intense magnetic field along the chain axis