Theoretical Insights into the Use of Structural Similarity Index In Generative Models and Inferential Autoencoders