Electron propagator theory of conformational effects on anisole and thioanisole photoelectron spectra