Molecular dynamics studies of the vitreous state: Simple ionic systems and silica