BoolNet: Minimizing The Energy Consumption of Binary Neural Networks