Trends in the relationship between sex and attempted suicide