A rigid wire consists of a semi-circular portion of radius R and two straight sections (figure). The wire is partially immersed in a perpendicular magnetic field B, as shown in the figure. Find the magnetic force on the wire if it carries a current i.