Density functional study of the TiO2–dopamine complex