Foil-based optical technology platform for optochemical sensors