A theoretical study of linear beryllium chains: Full configuration interaction