Understanding and Mitigating Gender Bias in Information Retrieval Systems