Carbosiloxane polymers for chemical sensors