create_phi_to_theta_xptr function

Create external pointer to a C++ function for phi_to_theta