GPUSPH: a Smoothed Particle Hydrodynamics model for the thermal and rheological evolution of lava flows