An ubiquitous mechanism for water-like anomalies