Arizona, prisoners reach deal to settle death penalty suit