Towards a dispersive determination of the η and η′ transition form factors