INDEX: Real-time Simulation of Granular Matter using Smoothed Particle Hydrodynamics