Construction of spin models displaying quantum criticality from quantum field theory