A patient presents complaining of bloodstained stools and the inability to completely empty his rectum. He also has pain along the back of his thigh and weakness of the posterior thigh muscles. Digital examination reveals a tumor in the posterolateral wall of the rectum. Pressure on what nerve plexus could cause the pain in his lower limb?