Validating the phase diversity approach for sensing NCPA in SHARK-NIR, the second-generation high-contrast imager for the Large Binocular Telescope