On the use of non-hydrogenic spectral line profiles for plasma electron density diagnostics