Serbia and Croatia agree deal to transport migrants to 'end torture'