SIMULATION OF RESONANTLY AND OFF-RESONANTLY EXCITED X-RAY EMISSION SPECTRA: AN APPLICATION FOR THE XALPHA SCATTERED-WAVE METHOD