Bistable perception alternates between internal and external modes of sensory processing