Static hyperpolarizabilities and polarizabilities of linear polyynes