added support for hexagonal unit cells in score optimization