Structure and dynamics of 1,2-dimethoxyethane and 1,2-dimethoxypropane in aqueous and non-aqueous solutions: A molecular dynamics study