Sol‐gel–mediated synthesis of TiO 2 nanocrystals: Structural, optical, and electrochemical properties