Existence of minimizers and lowersemicontinuity of integral functionals in the vectorial case