Doncaster Rovers and Scunthorpe agree deal for Mark Duffy