Existence and boundedness of minimizers of a class of integral functionals