L^\infty regularity for variational problems with sharp nonstandard growth conditions