Change of Elastic Energy due to Void Formation