Reducing emissions by replacing diesel with hydrogen for generators