Measurement of global polarization of Λ hyperons in few-GeV heavy-ion collisions