Calculation of Anharmonic IR and Raman Intensities for Periodic Systems from DFT Calculations: Implementation and Validation