Lattice and electronic specific heat of YBa2Cu3O7