Design and Analysis of a While-Drilling Energy-Harvesting Device Based on Piezoelectric Effect