Lifted Relational Neural Networks