On the mechanical response of multilayered pentamode lattices equipped with hinged and rigid nodes