Electronic structure and stability of charged beryllium clusters