SHARP MARTINGALE INEQUALITIES AND APPLICATIONS TO RIESZ TRANSFORMS ON MANIFOLDS, LIE GROUPS AND GAUSS SPACE