Enhanced Strategy for Optimizing Net Energy Consumption of Railway Systems Using Speed Profile and Variable Headway | Synapse