The Beam energy measurement system for the Beijing electron-positron collider