Measure of modularity using link strength in unipartite networks