General optimization technique for high-quality community detection in complex networks | Synapse