Ontological Integration of Semantics and Domain Knowledge in Hardware and Software Co-simulation of the Smart Grid