Phase transitions in a two-dimensional lattice gas model of orientable diatomic molecules