Machining Complex Three-Dimensional Nanostructures With an Atomic Force Microscope Through the Frequency Control of the Tip Reciprocating Motions