Application of a TES micro-calorimeter as high-energy resolution detector for hard X-rays at a synchrotron beam line