CIDEVMI-1037 Updates and Optimizes PHSEN Calculations

Updates PHWATER functions to better align with the DPS and to improve the speed of the function via vectorizing the code to use matrix multiplications rather than for-loops.