Alcohol and drug use as factors associated with mental disorders among the incarcerated population in Spain