Theoretical ab initio study of the electronic states of KrH and KrH+: Quantum defect and complex coordinate calculations on the Rydberg states of KrH