Time-resolved dynamics of granular matter by random laser emission