Complex transition pathways in boiling and cavitation | Synapse