Bruno Alves agrees to terms with Fenerbahce