Genetic, epigenetic, and environmental mechanisms govern allele-specific gene expression