Heterogeneous photocatalysis with inverse titania opals: probing structural and photonic effects