Design, realization and performance of the L3 BGO electromagnetic calorimeter