Text this: Investigation of the linear and nonlinear optical susceptibilities of KTiOPO4 single crystals: Theory and experiment