A shared enhancer controls a temporal switch between promoters during Drosophila primary sex determination