Facile synthesis of TiO2 inverse opal electrodes for dye-sensitized solar cells.