Bills sign QB Matt Barkley to two-year extension to mentor Josh Allen