Void Formation in Model Liquids, Polymer Glasses, and Granular Materials