Optical and magnetic studies of CoTi alloy films