Americans' medium-term inflation expectations rise in August