Photoactivity and electronic properties of graphene-like materials and TiO2 composites using first-principles calculations