Differences Between a Single- and a Double-Folding Nucleus-$$^\mathbf{9}$$9Be Optical Potential