Hard X-rays and soft-matter: processing of sol–gel films from a top down route