Neutral pion production at midrapidity in pp and Pb–Pb collisions at √sNN = 2.76 TeV