Lattice Boltzmann simulations of complex fluids: viscoelastic effects under oscillatory shear