Ab initio Force Constant Approach to Phonon Dispersion Relations of Diamond and Graphite