Measurements of the structure of quark and gluon jets in hadronic Z decays RID C-6238-2011 RID F-5127-2011 RID G-1279-2010 RID H-5578-2011