A fast and accurate method for the singular value decomposition of 3x3 matrices