Upper-atmosphere density, determined from the orbits of Cosmos rockets