Integrated optical components on atom chips