Gravitational waves induced by scalar perturbations as probes of the small-scale primordial spectrum