LatentPINNs: Generative physics-informed neural networks via a latent representation learning