First-principles study of Dirac and Dirac-like cones in phononic and photonic crystals | Synapse