Search for giant-resonance excitation by radiative capture of π− in16O