Optics of thin films; an optical multilayer theory