Diamond based materials and nanostructures for advanced functional applications