Stress inversion of focal mechanism data using a Bayesian approach: a novel formulation of the Right Trihedra Method