Quantum reactive scattering in three dimensions using hyperspherical (APH) coordinates. Theory