Comparison of Raman-scattering and Shubnikov-de Haas measurements to determine charge density in doped semiconductors