Calculation of Coulomb-interaction parameters for La2CuO4 using a constrained-density-functional approach.