Inferring DFAs from Log Traces Using Community Detection