Liquid-induced colour change in a beetle: the concept of a photonic cell