Inner-Shell Photoabsorption Spectra of the Be I and Be II Ions