Thermodynamics-based Artificial Neural Networks for constitutive modeling