Switching the reflection in chiral nematic mesoporous silica and organosilica films