Ferrite-damped higher-order mode study in the Brookhaven energy-recovery linac cavity