On functions whose stationary points are global minima