Spin-parity analysis of the final state π+π−π0 from pp annihilation at rest in hydrogen targets at three densities