Electronic and magnetic properties of K2CuP2O7: A model S = ½ Heisenberg chain system