The role of soil states in medium-range weather predictability