Extended Hirshfeld: atomic charges that combine accurate electrostatics with transferability