The emergence of synchrony in networks of mutually inferring neurons