The naive utility calculus: computational principles underlying social cognition