Amorphous silica between confining walls and under shear: A computer simulation study