Surface Functionalization of Ceramic Nanoparticles: Application to Ion-Sensing and Gas-Sensing Devices