Charged and neutral particle multiplicity in π−p and π−n interactions at 40 GeV/c