Extraction of exchange parameters in transition-metal perovskites