Bruins sign former Sabres captain Gionta for rest of season