AI systems trained on data skewed by sex are worse at diagnosing disease