Villarreal have confirmed their defender Gabriel Paulista has signed for Arsenal, with forward Joel Campbell joining the Spanish side on loan as part of the deal.