Thermally stable Mesoporous pH dyes encapsulated titania nanocomposites for opto-chemical sensing