SMS: Sharp error bounds for Ritz vectors and approximate singular vectors