A method for partitioning gene-level contributions to complex-trait heritability by allele frequency (or any other binary annotations)