Ab initio study revealing a layered structure in hydrogen-rich KH 6 under high pressure