A.A. Agrachev, R.V. Gamkrelidze, Quadratic maps and smooth vector-valued functions: Euler characteristics of level sets