Relationships between familial risks of cancer and the effects of heritable genes and their SNP variants