Energy resolution and longitudinal shower development in a Si/W electromagnetic calorimeter