Laparoscopic versus open repair of inguinal hernia: a longitudinal cohort study