Singular minimizers in the calculus of variations