Existence of elastic deformations with prescribed principal strains and triply orthogonal systems