Insights into the emergence of mass from studies of pion and kaon structure