Profit Maximization for Viral Marketing in Online Social Networks: Algorithms and Analysis