Development and stability of preferential flow paths in a layered snowpack