Computational Approach To The Problems Of Electro- And Photo-Catalysis