Red Sox finalize 2-year deal with left-hander Patrick Sandoval, who is recovering from elbow surgery