Emission analysis for hydrogen engines