Hybrid Random Fields. A Scalable Approach to Structure and Parameter Learning in Probabilistic Graphical Models