Heritability estimation of diseases in case-control studies