Gravitational collapse of a shell of quantized matter