Bose–Einstein correlations of neutral and charged pions in hadronic Z decays