Optimization of Flow Parameters of Heavy Crude Oil-in-Water Emulsions through Pipelines