Minimizing the elastic energy of growing leaves by conformal mapping