Vibrational and relaxational properties of crystalline and amorphous ices