Patriots agree to 3-year extension with Ninkovich