Searching for narrow absorption and emission lines in XMM-Newton spectra of gamma-ray bursts