The earliest writers on sexual orientation usually understood it to be intrinsically linked to the subject's own sex. Early writers linked orientation to what concept?