Pulse pile-up recovery for the front-end electronics of the PANDA Electromagnetic Calorimeter