Quantum nuclear densities from semiclassical on-the-fly molecular dynamics