Critical realism and semiosis (revised version).