An efficient method for restraining negative information cascades in online social networks