Extended Hirshfeld: Atomic charges that combine accurate electrostatics with transferability