Ab initio study of the stokes shift of the ns-np transition of Tl+ and In+ in KCl, Jahn-Teller effect in the nsnp configuration