Core-softened fluids, water-like anomalies, and the liquid-liquid critical points