The determination of hyperpolarisabilities using density functional theory