Quantum mechanical cluster calculations of ionic materials: the ab initio perturbed ion (version 7) program