Measuring consciousness with confidence ratings