Realizing and adiabatically preparing bosonic integer and fractional quantum Hall states in optical lattices