The variation of pionic X-ray intensity with atomic number