Intramolecular rearrangement of platinum and palladium carbenoids