Determination of intrinsic defects of functional KDP crystals with flawed surfaces and their effect on the optical properties.