Determination of vibrational polarizabilities and hyperpolarizabilities using field-induced coordinates