Accurate detection of shock waves and shock interactions in two-dimensional shock-capturing solutions