Italy frees Spanish ship that rescues migrants in Mediterranean