On the specific heat of some layered copper compounds: I. Lattice contribution