Fix compilation errors and correctness with lookup table enabled
- Revert the change where scaling of the phase argument is moved out of the critical path, as this causes the degridder kernel test to fail.
- Move the implementation of the lookup table functions to a separate file to workaround multiple defined reference errors at compile time