Contrastive Behavioral Similarity Embeddings for Generalization in Reinforcement Learning