Electron Densities Derived from Line Intensity Ratios: Beryllium Isoelectronic Sequence