Commissioning of the electromagnetic calorimeter ECAL of the HADES experiment