Reduction and evaluation of elliptic integrals