Thermoresponsive inverse opal films fabricated with liquid-crystal elastomers and nematic liquid crystals.