Performance of the forward electromagnetic calorimeter (FEMC) for the end caps of the DELPHI detector