Mental disorder prevalence and associated risk factors in three prisons of Spain