A deep learning energy-based method for classical elastoplasticity