SMORE: spatial motifs reveal patterns in cellular architecture of complex tissues