Dissociation of hydrogen molecules on the clean and hydrogen-preadsorbed Be(0001) surface