Optimal DLT-based Solutions for the Perspective-n-Point