Integration of light and atom optics on an atom chip