Sociodemographic factors related to self-medication in Spain