Aubameyang signs three-year Arsenal deal