A long wire carrying current i has been bent into the shape as shown in figure. AB and CD are circular arcs centred at O, having radius 2r and 3r respectively. EF is a semicircle of radius r centred at O, all other segments are straight and radial pointing towards O. Find the magnetic field at the point O.