Elaborate on the theoretical aspects of heterogeneous catalysis in chemical engineering, highlighting the mechanisms of surface reactions, the role of catalysts in altering reaction pathways, and the factors affecting catalyst activity, selectivity, and stability in industrial processes.