Statistics for Epigenetic, genetic, and maternal effects enable stable centromere inheritance