A characterization of Hajłasz–Sobolev and Triebel–Lizorkin spaces via grand Littlewood–Paley functions☆