Designing spin-1 lattice models using polar molecules