Structure and photocatalytic performance of a metallacycle complex based on flexible carboxylic acid ligand