Complexes of divalent transition metal ions with bis(aminomethyl) phosphinic acid in aqueous solution and in the solid state