Retrosynthesis of difunctionalized compounds