Incommensurate phase transitions and anomalous lattice heat capacities of biphenyl