Calculation of piezoelectric constants of poly(vinylidene fluoride)