Applicable diagnostic model for detecting patients with mental disorders with magnetic resonance imaging