The semantic foundations of cognitive theories of humor