People learn other people’s preferences through inverse decision-making