Nonlinear optical spectroscopy of electronic transitions and domains in ferroelectric antiferromagnet YMnO3