The Detectability of Rocky Planet Surface and Atmosphere Composition with JWST: The Case of LHS 3844b