Jordi Alba agrees terms with Barcelona