An epigenetic switch activates bacterial quorum sensing and horizontal transfer of an integrative and conjugative element