Interpretation of the electron cyclotron emission signal from optically marginal plasmas