Conformal mapping of multiply connected Riemann domains by a variational approach