Find the magnetic field at point P due to a straight wire segment AB of length 6 cm carrying a current of 5 A.