Vibrational dynamics, phonon localization and structural correlations on the nanometric length scale in glasses