The vibrational spectrum of amorphous materials obtained by the use of an Anderson-like Hamiltonian