NMR Shifts in 3He in Aerogel Induced by Demagnetizing Fields