Common themes in the function of transcription and splicing enhancers