Brazilian outfit Gremio have finalised the sale of midfielder Fernando to Shakhtar Donetsk for 13 million euros (£11.05m).