Direct Piezoelectric Tensor of 3D Periodic Systems through a Coupled Perturbed Hartree-Fock/Kohn-Sham Method