Quaternionic analysis on Riemann surfaces and differential geometry