Deep Generative model that uses physical quantities to generate and retrieve solar magnetic active regions