High-throughput methods to analyze protein-DNA and protein-RNA interactions