Relationship between the optical and mechanical properties of fluorinated amorphous carbon thin films