Open-weight AI models are safer for cyber defense than closed-weight alternatives