Explicitly correlated trial wavefunctions in quantum Monte Carlo calculations of excited states of Be and Be-