Attenuating vibrations with negative stiffness