Heterogenous mean-field analysis of a generalized voter-like model on networks