A facile route to multi-functionalization of methyl gallate: pivotal synthons for mesomorphic materials