Quantum reactive scattering in three dimensions using adiabatically adjusting principal axis hyperspherical coordinates: Periodic distributed approximating functional method for surface functions