Chemomechanical Instabilities in Responsive Materials