Cognitive factors associated with the willingness for HIV testing among pregnant women in China.