Inclusive J/psi and psi' production in pi sup - -nucleus interactions at sq root s approx = 26 GeV