Mantle redox state drives outgassing chemistry and atmospheric composition of rocky planets