Homotopy classification of director fields on polyhedral domains with tangent and periodic boundary conditions, with applications to bi-stable post-aligned liquid crystal displays