3D macroporous TiO2 inverse opal binary and ternary composite materials and their photocatalytic activity