The monodromy groups of Schwarzian equations on closed Riemann surfaces