Nano-mechanical testing of colloidal nanostructures and self-assembled films