Electron screening and inner shell refilling in pionic atoms