Nucleon--nucleon correlations and the pion--nucleus interaction