Electronic specific-heat anomalies in two-dimensional systems