Level population densities and line intensities in helium discharges at intermediate pressures