Non-invasive measurements of granular flows by magnetic resonance imaging