Hydrated-layer formation during dissolution of complex silicate glasses and minerals