Cavities and packing defects in the structural dynamics of myoglobin