CRISPR-based functional genomics to study gene regulatory architecture and consequences of genetic variation