Preparation of self-supporting carbon thin films