Understanding consciousness in physics