Impact of infertility duration on male sexual function and mental health