Nonlinear optical microscopy and spectroscopy of ferroelectric and multiferroic materials