Effectiveness of inpatient versus outpatient complex treatment programs in depressive disorders: a quasi-experimental study under naturalistic conditions