The Mayer-Vietoris principle for Grothendieck-Witt groups of schemes