Forward modeling of stellar coronae: from a 3D MHD model to synthetic EUV spectra