Vibrational correlation function in ordered and disordered covalent solids