The origin of piezoelectric enhancement in compositionally graded ferroelectrics with sinusoidal variation