Optical nonlinearity in the nematic phase of bent-core mesogens