Method to extract anharmonic force constants from first principles calculations | Synapse