Osmotic instability in soft materials under well-controlled triaxial stress