X-ray diffraction study of Be to megabar pressure