Community detection in networks with fuzzy boundaries