Nonhomogeneous div-curl lemmas and local Hardy spaces