The role of cavities in the initiation and growth of explosion in liquids