Mets, Jay Bruce agree on 3-year, $39 million deal