INVERSE PROBLEM APPROACH TO PRECESSIONAL SWITCHING IN PERPENDICULAR MEDIA