Suicidal ideation and suicide attempts in homeless mentally ill persons: age-specific risks of substance abuse