A project to turn cow muck into carbon-capturing fertiliser could provide Welsh farmers with a new income source.