Petőfi Bori: Multitype branching processes for modeling complex contagion on social networks