Twins sign pitcher Ricky Nolasco