Theoretical study of nitrogen-rich BeN4 compounds