Ultracold atomic gases in optical lattices : mimicking condensed matter physics and beyond