Crystal structure and nonlinear optical properties of KSnOPO4 and their comparison with KTiOPO4