A method to track rotational motion for use in single-molecule biophysics