Elucidating the mechanism of step emulsification