Gloucester schools, teachers reach deal that increases wages, sick time