Structured Embedding Models for Grouped Data