Anisotropic Franklin bases on polygonal domains