Impact of sociodemographic factors on the relationship between perceived general health and the number of healthcare visits