Electronic properties of small neutral and charged beryllium clusters