Environment dependent dynamic charge potential for silica: Application to nanoscale silica structures