Comparative characterization of defects formed by di-and trivalent metal dopants in KDP crystals and the structural mechanism of influence of impurities on face morphology