Improving the precision and accuracy of three-dimensional single-molecule localization microscopy