Structured and Deep Similarity Matching via Structured and Deep Hebbian Networks