Ego development and sex attitudes in heterosexual and homosexual men and women