Vibrational Properties of Defective Oxides and 2D Nanolattices:Insights from First-Principles Simulations