LSEBMCL: A Latent Space Energy-Based Model for Continual Learning