Quantized Longitudinal and Transverse Shifts Associated with Total Internal Reflection