Self-assembled photonic mesostructures for water splitting photoanodes