Cartan media: geometric continuum mechanics in homogeneous spaces