Sensing pH with electroresistive nanocomposite membranes obtained from colloidal precursors