Zajac signs one-day contract with Devils, announces retireme