Precision positioning for thermal scanning probe lithography