Horizontal gene transfer: essentiality and evolvability in prokaryotes, and roles in evolutionary transitions