Submicron functional surfaces generated by diamond machining