Romanian farmers agree to buy Tereos sugar factory