Effect of particle geometry on phase transitions in two-dimensional liquid crystals.