Electromagnetic calorimetry with PbWO4 in the energy regime below 1 GeV