Grand Sobolev spaces and their applications to variational problems