Extended Hückel theory for ionic molecules and solids: An application to alkali halides