Suicide risk among residents in a cross-sectional study: the role of the Interpersonal Psychological Theory of Suicide