A variant of EAM to uncover community structure in complex networks