Role of MgO barriers for spin and charge transport in Co/MgO/graphene nonlocal spin-valve devices