Ahmedinejad replaces Iran foreign minister