Virtual Reality as a Tool to Study Human Perception and Cognition