Advances in nonlinear optical microscopy techniques for in vivo and in vitro neuroimaging