The Computation of Generalized Embeddings for Underwater Acoustic Target Recognition using Contrastive Learning