Probabilistic circuits: a tutorial