Understanding gene regulation and genetic variation through the lens of three-dimensional genome architecture