QED calculation of the ground-state energy of berylliumlike ions