A tutorial on bridge sampling