Hierarchically Porous Monoliths Based on N-Doped Reduced Titanium Oxides and Their Electric and Electrochemical Properties