Phase stability in BeNb and BeNbZr intermetallics