Thermoelectric properties of inverse opals