Pion and kaon structure at the electron-ion collider