Detecting structural transformation of cobalt phosphonate to active bifunctional catalysts for electrochemical water-splitting