Alberta to buy rail cars; expects deal within weeks