Source time function clustering reveals patterns in earthquake dynamics