Associations of social and material deprivation with tobacco, alcohol, and psychotropic drug use, and gender: a population-based study