Analysis of 12C+12C scattering using different nuclear density distributions